package com.apartment.own.request.house;

import com.apartment.own.domain.OwnResHouseResource;
import com.apartment.own.domain.OwnResHouseRoomConf;
import com.apartment.own.domain.group.InsertResourceMode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(description = "HouseInsertRequest")
public class HouseInsertRequest extends OwnResHouseResource {

    @NotNull(message = "参数不正确",groups = {InsertResourceMode.class})
    @ApiModelProperty(value = "特色")
    private List<String> featureList;

    @NotNull(message = "参数不正确",groups = {InsertResourceMode.class})
    @ApiModelProperty(value = "图片",position = 1)
    private List<String> imagesList;

    @NotNull(message = "参数不正确",groups = {InsertResourceMode.class})
    @ApiModelProperty(value = "房屋配置信息",position = 2)
    private List<String> configurationList;

    @NotNull(message = "参数不正确",groups = {InsertResourceMode.class})
    @ApiModelProperty(value = "这个对象是为了接受关于房屋配置的信息  由一个对象处理成 一个房间集合 ",position = 3)
    private OwnResHouseRoomConf houseRoomConfRequest;

    /* 合同部分字段 */
    @NotNull(message = "参数不正确",groups = {InsertResourceMode.class})
    @ApiModelProperty(value = "合同",position = 4)
    private List<String> contract;

    @NotNull(message = "参数不正确",groups = {InsertResourceMode.class})
    @ApiModelProperty(value = "证件 附件",position = 5)
    private List<String> certificate;

    @NotNull(message = "合同图片",groups = {InsertResourceMode.class})
    @ApiModelProperty(value = "合同图片",position = 5)
    private List<String> constraintImages;

}
